#if !defined(AFX_DLGUSER_H__7C90D3A5_BABD_493E_8CCB_A64A0B493B0C__INCLUDED_)
#define AFX_DLGUSER_H__7C90D3A5_BABD_493E_8CCB_A64A0B493B0C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgUser.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDlgUser dialog
#include "Case1Set.h"
#include "DlgAddUser.h"

class CDlgUser : public CDialog
{
// Construction
public:
	CDlgUser(CWnd* pParent = NULL);   // standard constructor

public:
	bool DrawList(CString strSql);
	CDatabase *m_pDb;
    CCase1Set m_userSet;
	CString   m_logined_user;

private:
	bool ResetButton();
	bool m_addNewFlag;
	bool m_addChangeFlag;
	
	// Dialog Data
	//{{AFX_DATA(CDlgUser)
	enum { IDD = IDD_USER };
	CEdit	m_edit_user_name;
	CEdit	m_edit_password;
	CListCtrl	m_list_user;
	CButton	m_btn_user_ok;
	CButton	m_btn_user_edit;
	CButton	m_btn_user_delete;
	CButton	m_btn_user_add;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgUser)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgUser)
	virtual BOOL OnInitDialog();
	afx_msg void OnClickListUser(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnBtnUserAdd();
	afx_msg void OnBtnUserEdit();
	afx_msg void OnBtnUserDel();
	afx_msg void OnBtnUserOk();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnCbnSelchangeCombo1();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGUSER_H__7C90D3A5_BABD_493E_8CCB_A64A0B493B0C__INCLUDED_)
